package com.demo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.StringJoiner;

public class Dto {
    private int statusCode;
    private Object data;
    private String msg;

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Dto(int statusCode, Object data, String msg) {
        this.statusCode = statusCode;
        this.data = data;
        this.msg = msg;
    }

    public Dto() {
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Dto.class.getSimpleName() + "[", "]")
                .add("statusCode=" + statusCode)
                .add("data=" + data)
                .add("msg='" + msg + "'")
                .toString();
    }
}
